package com.lecyon.farm.mapper;

import com.lecyon.farm.entity.elasticsearch.GpsPictureInformation;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * ElasticsearchRepository --> ElasticsearchCrudRepository --> PagingAndSortingRepository --> CrudRepository
 *
 * @author Yao Zheng
 * @Date 2020/4/29 13:12
 */
@Component
public interface GpsPictureInformationRepository extends ElasticsearchRepository<GpsPictureInformation, String> {

    List<GpsPictureInformation> findByCarIdAndTimeBetween(String carId, String beginTime, String endTime);
}
